/**
 * 
 */
package org.esiag.isidis.bi.il.poste;

import java.util.ArrayList;

/**
 * @author RANDRIAMANANTENA
 * @version 1.0
 * @since 1.0
 */
public class SacPostal extends EnvoiPostal {
	
	/**
	 * List of dessins in the SacPostal
	 */
	protected ArrayList<EnvoiPostal> _dessins;

	/**
	 * Constructor of a SacPostal
	 */
	public SacPostal() {
		super();
		this._dessins = new ArrayList<EnvoiPostal>();
	}
	
	/**
	 * Add a "dessin" to the SacPostal
	 * @param fig
	 */
	public void ajouter(EnvoiPostal fig){
		this._dessins.add(fig);
		this._poids+=fig._poids;
	}
	
	/**
	 * Remove a "dessin" from the SacPostal
	 * @param fig
	 */
	public void retirer(EnvoiPostal fig){
		this._dessins.remove(fig);
		this._poids-=fig._poids;
	}

}
